package com.itheima.mapper;

import com.itheima.pojo.PageQuery;
import com.itheima.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface UserMapper {

     Integer findTotal(PageQuery pageQuery);

    List<User> page(PageQuery pageQuery);

    @Select("select * from user where name=#{name} and password=#{password}")
    User login(User user);
}
